package com.exam.service.serviceImpl;

import com.exam.entity.EClass;
import com.exam.mapper.EClassMapper;
import com.exam.service.EClassService;

import java.util.List;

public class EClassServiceImpl implements EClassService {

    private EClassMapper eClassMapper;

    public void seteClassMapper(EClassMapper eClassMapper) {
        this.eClassMapper = eClassMapper;
    }

    @Override
    public List<EClass> get_all_class() {
        return eClassMapper.get_all_class();
    }

    @Override
    public int add_class(EClass eClass) {
        return eClassMapper.add_class(eClass);
    }

    @Override
    public int del_class_by_c_id(int c_id) {
        return eClassMapper.del_class_by_c_id(c_id);
    }

    @Override
    public List<EClass> get_class_user() {
        return eClassMapper.get_class_user();
    }
}
